<?php

	// which version
	$sClassExplorerVersion = '0.3';

	// include required source files
	require_once("startup.php");
	require_once("templates.php");
	require_once("reflection.php");

	// go to up dir
	chdir('../');


	// check PHP version
	if (version_compare(PHP_VERSION, '5.0.0') == -1) {

		// include not successful --> display error message
		displayXHTMLDocument('ClassExplorer &ndash; Error',
					 		'<h1>ClassExplorer Error</h1>' .
							'<p>The ClassExplorer requires PHP version >= 5.0.0.</p>');

		exit;
	}

	// include all classes
	if (! includeClasses()) {

		// include not successful --> display error message
		displayXHTMLDocument('ClassExplorer &ndash; Error',
					 		'<h1>ClassExplorer Error</h1>' .
							'<p>The required file <em>"includeClasses.php"</em> could not be loaded. Make sure that this file exists and is readable.</p>' .
							'<p>This file contains some code, that loads all classes you want to explore.</p>');

		exit;
	}

?>